﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace BusinessLibrary
{
    internal class DALtools
    {
        public static string DataConnectionString = System.Configuration.ConfigurationManager.
                                                          ConnectionStrings["SmartCalendarConnectionString"].ToString();

        public static void SetDBNull(SqlCommand cmd)
        {
            foreach (SqlParameter Parameter in cmd.Parameters)
            {
                if (Parameter.Value == null)
                {
                    Parameter.Value = DBNull.Value;
                }
            }
        }
    }
}
